package com.github.base.mapper;

import com.github.base.domain.User;
import com.github.base.dto.user.UserListDTO;
import com.github.base.vo.user.UserListVO;
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@InterceptorIgnore(illegalSql = "true")
public interface UserMapper extends BaseMapper<User> {
    /**
     * 分页查询用户信息
     * @param page
     * @param dto
     * @return
     */
    Page<UserListVO> findListByPage(@Param("page") Page page, @Param("dto") UserListDTO dto);


}
